package com.example.hxds.bff.customer.feign;

import com.example.hxds.bff.customer.controller.form.ReceiveBillMessageForm;
import com.example.hxds.bff.customer.controller.form.SendNewOrderMessageForm;
import com.example.hxds.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * @program: hxds
 * @description: 代理消息通知子系统
 * @author: Sida
 * @create: 2023-07-06 14:02
 * @Version 1.0
 * @Blog:
 * @GitHub:
 */
@FeignClient(value = "hxds-snm")
public interface SnmServiceApi {

    /**
     * 发送新订单消息异步
     * @param form
     * @return
     */
    @PostMapping("/message/order/new/sendNewOrderMessageAsync")
    R sendNewOrderMessageAsync(SendNewOrderMessageForm form);


    /**
     * 接收账单消息
     * @param form
     * @return
     */
    @PostMapping("/message/receiveBillMessage")
    R receiveBillMessage(ReceiveBillMessageForm form);
}
